package java69.work720;

public class JavaTeacher extends Teacher {
    public JavaTeacher() {
    }

    public JavaTeacher(String name, String sex, int age, int years, String adress) {
        super(name, sex, age, years, adress);
    }

    public void show(){
        super.setName("小王");
        super.setSex("男");
        super.setAge(20);
        super.setAdress("合肥");
        super.setYears(5);
        super.showSelf();
        super.teaching("Eclipse");
    }

    public static void main(String[] args) {
        JavaTeacher javaTeacher = new JavaTeacher();
        javaTeacher.show();
    }
}
